import java.util.Scanner;

/**
 * Created by zenglin on 2017/1/17.
 */
import java.util.Scanner;
public class ComputerAverage {
    public static void main(String[] args){
        //Create a Scanner object
        Scanner input = new Scanner(System.in);

        //Prompt the user to enter three numbers
        System.out.print("Enter three numbers: ");
        double number1 = input.nextDouble();
        double number2 = input.nextDouble();
        double number3 = input.nextDouble();

        //Compute average
        double average = ( number1 + number2 + number3 ) / 3;

        //Display result
        System.out.println("The average of "+ number1 +" "+ number2 +" "+ number3+" is " + average);
    }
}
//重点 一定要记得获取输入之前要创建一个Scanner 其参数为System.in
